<!DOCTYPE html><!-- saved from url=(0048)http://www.gethx.com -->
<html>
<head>
<include file="public:headtop" />
<script charset="utf-8" type="text/javascript" src="__STATIC__/weixin/js/dialog.js" id="dialog_js"></script>
<link href="__STATIC__/weixin/css/dialog.css" rel="stylesheet" type="text/css">
<script charset="utf-8" type="text/javascript" src="__STATIC__/weixin/js/jquery_003.js"></script>
<script charset="utf-8" type="text/javascript" src="__STATIC__/weixin/js/zh-CN.js"></script>
<script charset="utf-8" type="text/javascript" src="__STATIC__/weixin/js/jquery_002.js"></script>
<link rel="stylesheet" type="text/css" href="__STATIC__/weixin/css/jquery.css">
</head>

<body>
<include file="public:head" />
<div class="content">
    <!-- <h3 class="membertop">
       <p class="my_name"><a href="#">{$visitor.username}</a></p>
       <p class="my_address"><a href="{:u('user/address')}">我的收货地址管理</a></p>
    </h3> -->
    <!-- <ul class="buyer_stat">
          <li class="btn_1 <if condition='$status eq 1'>active</if> "><a href="{:u('user/index',array('status'=>1))}">待付款</a><span>待付款</span></li>        
          <li class="btn_2 <if condition='$status eq 2'>active</if> "><a href="{:u('user/index',array('status'=>2))}">待配送</a><span>待配送</span></li>
          <li class="btn_3 <if condition='$status eq 3'>active</if>"><a href="{:u('user/index',array('status'=>3))}">待收货</a><span>待收货</span></li>
          <li class="btn_4 <if condition='$status eq 4'>active</if>"><a href="{:u('user/index',array('status'=>4))}">已完成</a><span>已完成</span></li>
    </ul> -->
	<script type="text/javascript">
    $(function(){
    $(".buyer_stat > li a").each(function() {
                href="http://store.weiapps.cn/"+$(this).attr("href");
                if(window.location.href==href){
                    $(this).parent("li").addClass("active");
                }
            });
    });
    </script>
    <div class="wrap">
        <div class="public">
        
            <notempty name="item_orders">
             <volist name='item_orders' id='vo' >
            <div class="order_form">
                    <p class="num" style="clear:both;display:block">
                    <span style="float:left">
                      订单号: {$vo.orderId}
                    </span>

                    <span style="float:right">
                    <switch name="vo.status" >
                         <case value="1">待付款</case>
                         <case value="2">待配送</case>
                         <case value="3">配送中</case>
                        <default />完成
                    </switch>
                    </span>
                    </p>
                    <volist name='vo.items' id='item' >
                    <div class="con">
                        <p class="ware_pic"><a href="{:u('item/index',array('id'=>$item['itemId']))}" ><img src="{:attach(get_thumb($item['img'], '_b'), 'item')}" height="80" width="80"></a></p>
                        <p class="ware_text"><a href="{:u('item/index',array('id'=>$item['itemId']))}">{$item.title}</a><br><span class="attr"></span></p>
                        <!-- <p class="price">应付金额：<span>¥{$item.price}</span></p> -->
                        <if condition="$vo['userName'] eq ''">
                        <p class="price" style="float:left;width:50%">未送出</span></p>
                        <else/>
                        <p class="price" style="float:left;width:50%">送给：<span>{$vo.userName}</span></p>
                        </if>
                        <php>if($vo['support_uid']){
                          $user = M('user')->find($vo['support_uid']);
                          </php>
                          <p class="price" style="float:left;width:50%">来自：<span><php>echo $user['username']</php></span></p>
                          <php>}</php>
                        <!-- <p class="amount">数量: <span>{$item.quantity}</span></p> -->
						<!-- <p class="amount"><php>if($item['color']){</php>颜色: <span>{$item['color']}</span><php>}</php><php>if($item['size']){</php>&nbsp;尺码: <span>{$item['size']}</span><php>}</php></p> -->
                    </div>
                  </volist>
                    <div class="clear"></div>
                    <div class="foot">
                        <p class="time">下单时间:{$vo.add_time|date='Y-m-d H:i:s',###}</p>
                         <div class="handle">
                            <div style="float:left;">
                                总价: <b id="order118_order_amount">¥{$vo.order_sumPrice}&nbsp;&nbsp;</b>
                            </div>   
                         <switch name="vo.status" >
                         <case value="1"><!--待付款 -->

                          <if condition="$vo['userId'] != $online_user['id']">
                           <a href="/wxpay/demo/js_api_call.php?price={$vo['order_sumPrice']}&body={$vo['items'][0]['title']}&orderid={$vo['id']}" class="btn">付款</a>
                          </if>
                          
                            <a href="{:u('order/cancelOrder',array('orderId'=>$vo['orderId']))}" id="order118_action_cancel"> 取消订单</a>
                            <!-- <a href="{:u('order/checkOrder',array('orderId'=>$vo['orderId'],'status'=>$status))}" >查看订单</a> -->
                         </case>
                         <case value="2"><!--待配送 -->
                            <!-- <a href="{:u('order/checkOrder',array('orderId'=>$vo['orderId'],'status'=>$status))}" >查看订单</a> -->
                         </case>
                         <case value="3"><!-- 待收货 -->
                            <!-- <a href="{:u('order/confirmOrder',array('orderId'=>$vo['orderId'],'status'=>$status))}" id="order118_action_confirm" >确认收货</a>
                            &nbsp;<a href="{:u('order/checkOrder',array('orderId'=>$vo['orderId'],'status'=>$status))}" >查看订单</a> -->
                         </case>
                        <default />
                         &nbsp;<a href="{:u('order/checkOrder',array('orderId'=>$vo['orderId'],'status'=>$status))}" >查看订单</a>
                        </switch>  
                        <php>if($vo['status'] == "1" && $vo['userId'] == $online_user['id']){</php>
                        &nbsp;<a href="{:u('order/share',array('orderid'=>$vo['id'],'status'=>$status))}" >付款</a> 
                        <php>}else if($vo['status'] == "2" && !$vo['userId'] && $vo['author_id'] == $online_user['id']){</php>
                        &nbsp;<a href="{:u('order/share',array('orderid'=>$vo['id'],'status'=>$status))}" >再送</a> 
                        <php>}</php>


                        </div>
                    </div>
            </div>
            </volist>
            <else/>
           <div class="order_form member_no_records">
                <span>没有符合条件的记录</span>
            </div>
              </notempty>
        
            
            <div class="order_form_page">
                <div class="page">
            	</div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="wrap_bottom"></div>
    </div>     
    <div class="wrap_line margin1" style="display:none;">
            <div class="public_index">
                <div class="information_index">
                    <div class="awoke">
                        您目前还没有已生成的订单<br>去<a href="#">商城首页</a>，挑选喜爱的商品，体验购物乐趣吧。
                    </div>
                </div>

            </div>
            <div class="wrap_bottom"></div>
        </div>
    <div class="clear"></div>
</div>
<include file="public:footer" />

</body>
</html>